/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author wyr
 */
@Embeddable
public class TSysSysparamPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "pfirstname")
    private String pfirstname;
    @Basic(optional = false)
    @Column(name = "plastname")
    private String plastname;

    public TSysSysparamPK() {
    }

    public TSysSysparamPK(String pfirstname, String plastname) {
        this.pfirstname = pfirstname;
        this.plastname = plastname;
    }

    public String getPfirstname() {
        return pfirstname;
    }

    public void setPfirstname(String pfirstname) {
        this.pfirstname = pfirstname;
    }

    public String getPlastname() {
        return plastname;
    }

    public void setPlastname(String plastname) {
        this.plastname = plastname;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pfirstname != null ? pfirstname.hashCode() : 0);
        hash += (plastname != null ? plastname.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TSysSysparamPK)) {
            return false;
        }
        TSysSysparamPK other = (TSysSysparamPK) object;
        if ((this.pfirstname == null && other.pfirstname != null) || (this.pfirstname != null && !this.pfirstname.equals(other.pfirstname))) {
            return false;
        }
        if ((this.plastname == null && other.plastname != null) || (this.plastname != null && !this.plastname.equals(other.plastname))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TSysSysparamPK[pfirstname=" + pfirstname + ", plastname=" + plastname + "]";
    }

}
